#ifndef ENEMYPLANE_H
#define ENEMYPLANE_H



#include<QPixmap>
#include"bullet.h"

class EnemyPlane
{
public:
    EnemyPlane();
    void shoot();

    //更新坐标
    void updatePosition();
public:
    //敌机资源对象
    QPixmap m_enemy;

    //位置
    int m_X;
    int m_Y;

    //敌机的矩形边框
    QRect m_Rect;

    //状态
    bool m_Free;

    //速度
    int m_Speed;

    //发射间隔记录
    int m_recorder = 0;

    Bullet e_bullets[BULLET_NUM];//弹夹
};

#endif // ENEMYPLANE_H
